<?php
namespace app\admin\controller\dividend;
use app\admin\controller\Controller;
use app\common\model\divide\Service;

/**
 *  服务商分红记录
 * Class Services
 * @package app\admin\controller\abonus
 */

class Services extends Controller
{
    /**
     * @return string
     */
    public function index()
    {
        $model = new Service();
        return $this->fetch('index', [
            // 充值记录列表
            'list' => $list = $model->getList($this->request->param()),
            // 属性集
            'statusList' => $model::getStatuslist(),
            'typeList' => $model::getTypelist(),

        ]);
    }
    
      public function income()
    {

        $model = new Service();
        return $this->fetch('income', [
            // 充值记录列表
            'list' => $list = $model->getIncomeList($this->request->param()),
        ]);
    }
}